import { BaseService, Service } from '@/service/request';

@Service('app/goods')
export default class extends BaseService {
    // 百亿补贴商品列表
    dayAllowanceGoodsList(params) {
        return this.request({
            url: '/dayAllowanceGoodsList2',
            method: 'GET',
            params
        })
    }
    // 百亿补贴购买
    dayGoodsBuy(data) {
        return this.request({
            url: '/dayGoodsBuy2',
            method: 'POST',
            data
        });
    }
    // 抢购时间
	flashTime(params) {
	    return this.request({
	        url: '/flashTime',
	        method: 'GET',
	        params
	    })
	}
    // 抢购列表
    flashGoodsList(params) {
        return this.request({
            url: '/flashGoodsList',
            method: 'GET',
            params
        })
    }
    // 我的抢购商品
    myFlashList(params) {
        return this.request({
            url: '/myFlashList',
            method: 'GET',
            params
        })
    }
}
